﻿<UserControl x:Class="AppMVVM.Views.ConnectionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Label Grid.Row="0"
               Content="Login:" FontWeight="Bold" />
        <Border Grid.Row="1"
                Margin="8,0,8,0">
            <TextBox x:Name="UsernameTextBox" MinHeight="20" Text="{Binding Credentials.Account}" FontWeight="Bold" />
        </Border>
        
        <Label Grid.Row="2"
               Content="Password:" FontWeight="Bold" />
        <Grid Grid.Row="3"
              Margin="8">
            <Border>
                <PasswordBox x:Name="PasswordTextBox" MinHeight="20"  PasswordChanged="OnPasswordChanged" KeyUp="PasswordTextBox_KeyUp"/>
            </Border>
        </Grid>
        <Grid Grid.Row="4"
              Margin="8, 42, 8, 0">
            <TextBlock Text=""/>
        </Grid>

        <Button Grid.Row="5"
                x:Name="ConnectButton"
                Command="{Binding ConnectCommand}"
                Margin="8,8,8,0" Content="Connect"
                Click="ConnectButton_Click"
                />
        <!---->
    </Grid>
</UserControl>
